package com.gylang.common.jwt;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;

/**
 * @author gylang,
 * @data 2019/12/7 12:43,
 * @DESC
 */
@Data
@AllArgsConstructor
public class JwtRole implements GrantedAuthority, Serializable {
    private String roleName;

    @Override
    public String getAuthority() {
        return roleName;
    }
}
